package com.team7.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team7.common.entity.CheckTeacher;
import com.team7.common.vo.TeacherCheckVo;
import org.apache.ibatis.annotations.Param;



/**
 * @program: team7-Object02
 * @description:
 * @author: 王子鑫
 * @create: 2021-10-19 21:13
 **/
public interface CheckTeacherDao extends BaseMapper<CheckTeacher> {
    //查询等待审核的讲师列表
    Page<TeacherCheckVo> findCheckTeacher(@Param("page")Page<TeacherCheckVo> page, @Param(Constants.WRAPPER) Wrapper ew);

    //修改
    int changeCheckTeacher(TeacherCheckVo teacherCheckVo);

    //修改讲师信息
    int changeTeacherInfo(TeacherCheckVo teacherCheckVo);

    //审核通过后进行修改
    int updateType(String mobile);
}
